import request from "../utils/request.js";

 
export function addressList (data) {  //收货地址列表
	return request({
		url:'/api/v1/user_addresses',
		data
	})
}
export function deladdress (data) {  //删除收货地址
	return request({
		url:'/api/v1/user_addresses/'+ data,
		data,
		method:'DELETE'
	})
}     
  export function addaddress (data) {  //添加收货地址
  	return request({
  		url:'/api/v1/user_addresses',
  		data,
  		method:'POST'
  	})
  }
  
  export function upaddress (data) {  //修改收货地址
  	return request({
  		url:'/api/v1/user_addresses/' + data.id,
  		data,
  		method:'PUT'
  	})
  }